package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Goods;

import java.util.Map;

/**
 * @author zjr
 * @version 1.0
 */
public interface GoodsService {
    Map<String, Object> list(Integer page, Integer rows, String goodsName, Integer goodsTypeId);

    ServiceVO saveGoods(Integer goodsId, Goods goods);

    ServiceVO deleteById(Integer goodsId);

    Map<String, Object> getNoInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    Map<String, Object> getHasInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    ServiceVO saveStock(Integer goodsId, Integer inventoryQuantity, double purchasingPrice);

    ServiceVO deleteStockById(Integer goodsId);
}
